<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>

  </body>
  <script>
    var arr = [2,3,4,4,5,2,3,6];
  var arr2 = arr.filter(function(element,index,self){
  return self.indexOf(element) === index;
  });
  console.log(arr2);


  </script>
</html>
